package com.xinxing.learning.datasource.mapper.first;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinxing.learning.datasource.domain.query.OrderInfoBaseQuery;
import com.xinxing.learning.datasource.domain.vo.OrderInfoVO;
import com.xinxing.learning.datasource.entity.OrderInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 用户订单mapper
 */
public interface FirstUserOrderInfoMapper {

    /**
     * 插入订单
     *
     * @param orderInfo 入参
     * @return 出参
     */
    int insertSelective(@Param("orderInfo") OrderInfo orderInfo);

    /**
     * 根据条件分页查询订单列表
     *
     * @param page               入参
     * @param orderInfoBaseQuery 入参
     * @return 出参
     */
    Page<OrderInfoVO> queryOrderInfoList(Page<OrderInfoVO> page, @Param("record") OrderInfoBaseQuery orderInfoBaseQuery);
}